package com.ceres.farm.dao;

import com.ceres.farm.pojo.CustFarm;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

@Repository
public interface CustFarmMapper extends Mapper<CustFarm> {
    //添加片区
    @Insert("INSERT INTO t_cust_farm (`id`, `custid`, `code`, `name`, `status`, `longitude`, `latitude`) VALUES (#{id}, #{custid}, #{code}, #{name},#{status},#{longitude}, #{latitude})")
    int add(CustFarm custFarm);

}
